package com.sunducation.wts.lifecycle

import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.LifecycleOwner

class My2ActivityLifeCycleObserver : LifecycleEventObserver{
    override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) {
        Log.e("My2", "--source:${source.lifecycle.currentState}--event:${event}")
    }
}